<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2017/2/11
 * Time: 15:28
 */

namespace YMApi\Model;


use Think\Model;

class SeminarTemplateCategoryGoodsModel extends Model
{
	protected $tableName = 'seminar_template_category_goods';

	public function findCategoryByTemplateId($id)
	{
		$where = array(
			'template_id'	=>	$id,
		);

		return $this->where($where)->find();
	}
}